/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package IFSv2.Models;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Joel
 */
public class mdlAPdtl {
    
    public String m_strBatNbr;
    public String m_strVoucherNbr;
    public String m_strTranType;
    public String m_strPostRef;
    public String m_strParticulars;
    public String m_strAccount;
    public String m_strSubAccount;
    public String m_strInterCo;
    public String m_strBudgetID;
    public String m_strQty;
    public String m_strUnitCost;
    public String m_strSubLedger;
    public String m_strLCID;
    public String m_strTaxID;
    public String m_strTaxable;
    public String m_strVAT;
    public String m_strWTax;
    public String m_strTranAmt;
    public String m_strCurUnitCost;
    public String m_strCurTaxable;
    public String m_strCurVAT;
    public String m_strCurWTax;
    public String m_strCurTranAmt;
    public String m_strProjID;
    public String m_strJONo;
    public String m_strLineSeqID;
    public String m_strSeqID;
    
    public void clearValues(){
        m_strBatNbr = "";
        m_strVoucherNbr = "";
        m_strTranType = "";
        m_strPostRef = "";
        m_strParticulars = "";
        m_strAccount = "";
        m_strSubAccount = "";
        m_strInterCo = "";
        m_strBudgetID = "";
        m_strQty = "";
        m_strUnitCost = "";
        m_strSubLedger = "";
        m_strLCID = "";
        m_strTaxID = "";
        m_strTaxable = "";
        m_strVAT = "";
        m_strWTax = "";
        m_strTranAmt = "";
        m_strCurUnitCost = "";
        m_strCurTaxable = "";
        m_strCurVAT = "";
        m_strCurWTax = "";
        m_strCurTranAmt = "";
        m_strProjID = "";
        m_strJONo = "";
        m_strLineSeqID = "";
        m_strSeqID = "";
    }
    
    public Map<Integer, ArrayList<String>> apdtl = new HashMap();
    
    public void insertToAPDetail(final int index){
        
        ArrayList<String> detail = new ArrayList();
        detail.add(m_strBatNbr);
        detail.add(m_strVoucherNbr);
        detail.add(m_strTranType);
        detail.add(m_strPostRef);
        detail.add(m_strParticulars);
        detail.add(m_strAccount);
        detail.add(m_strSubAccount);
        detail.add(m_strInterCo);
        detail.add(m_strBudgetID);
        detail.add(m_strQty);
        detail.add(m_strUnitCost);
        detail.add(m_strSubLedger);
        detail.add(m_strLCID);
        detail.add(m_strTaxID);
        detail.add(m_strTaxable);
        detail.add(m_strVAT);
        detail.add(m_strWTax);
        detail.add(m_strTranAmt);
        detail.add(m_strCurUnitCost);
        detail.add(m_strCurTaxable);
        detail.add(m_strCurVAT);
        detail.add(m_strCurWTax);
        detail.add(m_strCurTranAmt);
        detail.add(m_strProjID);
        detail.add(m_strJONo);
        detail.add(m_strLineSeqID);
        detail.add(m_strSeqID);
                
        apdtl.put(index, detail);
        
    }
    
    public void removeToAPDetail(int index){
        apdtl.remove(index);
    }
    
    
}
